import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import VueCoreVideoPlayer from 'vue-core-video-player'
import 'font-awesome/css/font-awesome.min.css';
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import 'animate.css';
import axios from 'axios'
import VueI18n from 'vue-i18n'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import jquery from 'jquery'



Vue.use(ViewUI);
Vue.use(mavonEditor)
Vue.use(VueCoreVideoPlayer)
Vue.config.productionTip = false
Vue.use(VueI18n);
Vue.prototype.$ = jquery
axios.defaults.withCredentials = true
axios.defaults.headers.post['Content-Type'] = 'text/plain'
Vue.prototype.$http = axios
axios.defaults.baseURL = '/service_6002'


const i18n = new VueI18n({
  locale: 'zh-CN',    // 语言标识
  messages: {
    'zh-CN': require('./assets/languages/zh'),  // 本地资源文件，我这里配2个语言，中文&英文，src下根据个人情况放置
    'en-US': require('./assets/languages/en')
  }
})


new Vue({
  router,
  i18n,
  render: h => h(App)
}).$mount('#app')
